﻿using d1Common.WebController;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace d1Project.Modules.Common.do4A.Controllers.a1
{
    /// <summary>
    /// 全部角色
    /// </summary>
    [Route("do4A/a1/allRole")]
    public class AllRoleController : ControllerBase
    {
        protected override DbContext dbContext
        {
            get
            {
                return this.db;
            }
        }
        private do4ADbContext db = new do4ADbContext();
        
        public IHttpActionResult Get()
        {
            var role = db.Roles.AsQueryable();
            return Ok(role.ToList());
        }
    }
}
